
#ifndef _APP_H_
#define _APP_H_


#include "dac6587.h"

#include "tcpip.h"

#define ldp_MAGIC 'K'
#define IOCTL_LDP_INTERLOCK_READ_1		_IOW	(ldp_MAGIC, 1, int)
#define IOCTL_LDP_INTERLOCK_READ_2		_IOW	(ldp_MAGIC, 2, int)

#define IOCTL_LDP_ENABLE_WRITE_1		_IOW	(ldp_MAGIC, 3, int)
#define IOCTL_LDP_ENABLE_WRITE_2		_IOW	(ldp_MAGIC, 4, int)

#define IOCTL_LDP_LM_FAULT_READ_1		_IOW	(ldp_MAGIC, 5, int)
#define IOCTL_LDP_LM_FAULT_READ_2		_IOW	(ldp_MAGIC, 6, int)

#define IOCTL_LDP_TEMP_FAULT_READ_1		_IOW	(ldp_MAGIC, 7, int)
#define IOCTL_LDP_TEMP_FAULT_READ_2		_IOW	(ldp_MAGIC, 8, int)

#define IOCTL_LED_WRITE					_IOW	(ldp_MAGIC, 9, int)



#define COUNTER_MAGIC 'C'
#define IOCTL_COUNTER_READ		_IOW	(COUNTER_MAGIC, 1, int)

#define POWER_MAGIC 'P'
#define IOCTL_CMP_ON	_IOW	(POWER_MAGIC, 1, int)
#define IOCTL_CMP_OFF	_IOW	(POWER_MAGIC, 2, int)
#define IOCTL_PZT_ON	_IOW	(POWER_MAGIC, 3, int)
#define IOCTL_PZT_OFF	_IOW	(POWER_MAGIC, 4, int)


#endif




